package com.ff.neuropp.repository;


import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ff.neuropp.domain.Course;

@Repository
public interface CourseRepository extends JpaRepository<Course,Integer> , JpaSpecificationExecutor<Course> {

    List<Course> findAllByCategory_idAndStatus(Integer type, Integer status);

    List<Course> findAllByStatusAndCourseNameLike(Integer status, String name);

    List<Course> findAllByStatusAndCareerId(Integer status,String careerId);
}
